#ifndef GLAS_H
#define GLAS_H

#include <osg/MatrixTransform>
#include <osg/Geode>
#include <osg/Group>
#include <osgViewer/Viewer>
#include <osg/Geometry>
#include <osg/PolygonMode>
#include <osg/ShapeDrawable>
#include <osg/BlendFunc>

#ifndef PI
#define PI 3.14159265358979323846f
#endif

using namespace osg;
using namespace std;

class Glas{

private:

	static double bodenFunc(const double x, const bool abl, const double height);
	static double glasFunc(const double x, const bool abl, const double height);
	osg::Geometry* createRot(const int lsteps, const int wsteps, const double height,
			double (*pfunc)(double x, bool abl, double height));

public:
	Glas();
	~Glas();
	osg::ref_ptr<Geode> get();
};
#endif
